import request from "@/utils/request";

// ppt分类列表
export function pptCategoryList(query) {
  return request({
    url: "/mall/PPtCate/list",
    method: "get",
    params: query,
  });
}

//添加ppt分类
export function addPPtCategory(data) {
  return request({
    url: "/mall/PPtCate/add",
    method: "post",
    data: data,
  });
}
//查询ppt分类
export function queryPPtCategory(id) {
  return request({
    url: "/mall/PPtCate/" + id,
    method: "get",
  });
}
//更新ppt分类
export function updatePPtCategory(data) {
  return request({
    url: "/mall/PPtCate/edit",
    method: "put",
    data: data,
  });
}
//删除ppt分类
export function delPPtCategory(id) {
  return request({
    url: "/mall/PPtCate/" + id,
    method: "delete",
  });
}
